#header-nav {
    .header {
        height: 132px;
        background: #fff;

        .container {
            display: flex;
            align-items: center;

            h1 {
                width: 200px;

                a {
                    text-indent: -999px;
                    display: block;
                    height: 132px;
                    width: 100%;
                    text-indent: -9999px;
                    background: url(http://erabbit.itheima.net/img/logo.0940ebb5.png) no-repeat center contain;
                }
            }

            ul {
                width: 820px;
                display: flex;
                justify-content: space-around;
                padding-left: 40px;
                position: relative;
                z-index: 999;

                li {
                    margin-right: 40px;
                    width: 38px;
                    text-align: center;
                    &:hover>a{
                        color: #27ba9b;
                        border-bottom: 1px solid #27ba9b;
                    }

                    a {
                        font-size: 16px;
                        line-height: 32px;
                        height: 32px;
                        display: inline-block;
                        color: #333;
                    }

                    .headerover {
                        height: 132px !important;
                        background: #fff;
                        // border: 1px solid #000;
                        opacity: 1 !important;
                    }

                    .headerNav {
                        width: 1240px;
                        background-color: #fff;
                        position: absolute;
                        left: -200px;
                        top: 56px;
                        height: 0;
                        overflow: hidden;
                        opacity: 0;
                        // box-shadow: 0 0 5px #ccc;
                        transition: all .2s .1s;


                        ul {
                            display: flex;
                            flex-wrap: wrap;
                            padding: 0 70px;
                            align-items: center;
                            height: 132px;

                            li {
                                width: 110px;
                                text-align: center;

                                img {
                                    width: 60px;
                                    height: 60px;
                                }

                                p {
                                    margin-top: 10px;
                                }
                                &:hover a{
                                    color: #27ba9b;
                                    border-bottom: 0 ;
                                }
                            }
                        }
                    }
                }
            }

            .secrch {
                width: 170px;
                height: 32px;
                position: relative;
                border-bottom: 1px solid #e7e7e7;
                line-height: 32px;

                input {
                    width: 140px;
                    padding-left: 5px;
                    color: #666;
                    border: none;
                }
            }

            .cart {
                width: 50px;
                position: relative;
                z-index: 600;

                &>a {
                    height: 32px;
                    line-height: 32px;
                    text-align: center;
                    position: relative;
                    display: block;

                    em {
                        font-style: normal;
                        position: absolute;
                        right: 0;
                        top: 0;
                        padding: 1px 6px;
                        line-height: 1;
                        background: #e26237;
                        color: #fff;
                        font-size: 12px;
                        border-radius: 10px;
                        font-family: Arial;
                    }
                }

                &:hover .layer {
                    opacity: 1;
                    transform: none;
                }

                .layer {
                    opacity: 0;
                    transition: all .4s .2s;
                    transform: translateY(-200px) scaleY(0);
                    width: 400px;
                    height: 400px;
                    position: absolute;
                    top: 50px;
                    right: 0;
                    // box-shadow: 0 0 10px rgb(0 0 0 / 20%);
                    background: #fff;
                    border-radius: 4px;
                    padding-top: 10px;

                    &::before {
                        content: "";
                        position: absolute;
                        right: 14px;
                        top: -10px;
                        width: 20px;
                        height: 20px;
                        background: #fff;
                        transform: scaleX(.6) rotate(45deg);
                        // box-shadow: -3px -3px 5px rgb(0 0 0 / 10%);
                    }

                    .list {
                        height: 310px;
                        overflow: auto;
                        padding: 0 10px;

                        .item {
                            border-bottom: 1px solid #f5f5f5;
                            padding: 10px 0;
                            position: relative;

                            a {
                                display: flex;
                                align-items: center;

                                img {
                                    height: 80px;
                                    width: 80px;
                                }

                                .center {
                                    padding: 0 10px;
                                    width: 200px;

                                    .name {
                                        font-size: 16px;
                                        display: -webkit-box;
                                        -webkit-box-orient: vertical;
                                        -webkit-line-clamp: 2;
                                        text-overflow: ellipsis;
                                        overflow: hidden;
                                    }

                                    .attr {
                                        color: #999;
                                        padding-top: 5px;
                                        text-overflow: ellipsis;
                                        overflow: hidden;
                                        white-space: nowrap;
                                    }
                                }

                                .right {
                                    width: 100px;
                                    padding-right: 20px;
                                    text-align: center;

                                    .price {
                                        font-size: 16px;
                                        color: #cf4444;
                                    }

                                    .count {
                                        color: #999;
                                        margin-top: 5px;
                                        font-size: 16px;
                                    }
                                }

                            }

                            .del {
                                position: absolute;
                                bottom: 38px;
                                right: 0;
                                opacity: 0;
                                color: #666;
                                transition: all .5s;
                            }

                            &:hover .del {
                                opacity: 1;
                                cursor: pointer;
                            }
                        }
                    }

                    .foot {
                        position: absolute;
                        left: 0;
                        bottom: 0;
                        height: 70px;
                        width: 100%;
                        padding: 10px;
                        display: flex;
                        justify-content: space-between;
                        background: #f8f8f8;
                        align-items: center;

                        .left {
                            padding-left: 10px;
                            color: #999;

                            p {
                                &:nth-of-type(2) {
                                    font-size: 18px;
                                    color: #cf4444;
                                }
                            }
                        }

                        button {
                            border-color: #27ba9b;
                            color: #27ba9b;
                            background: #e6faf6;
                            width: 180px;
                            height: 50px;
                            font-size: 16px;
                            text-align: center;
                            border-radius: 4px;
                            cursor: pointer;
                        }
                    }
                }
            }
        }
    }

    .show {
        transition: all .3s linear;
        transform: none;
        opacity: 1 !important;
        position: fixed !important;
        // top:0;
    }

    .heaerfixed {
        width: 100%;
        height: 80px;
        position: absolute;
        left: 0;
        z-index: 999;
        background-color: #fff;
        border-bottom: 1px solid #e4e4e4;
        transform: translateY(-100%);
        opacity: 0;

        .container {
            display: flex;
            align-items: center;

            h1 {
                width: 200px;
                height: 80px;
                background: url('http://erabbit.itheima.net/img/logo.0940ebb5.png') no-repeat right 2px;
                background-size: 160px auto;
            }


            ul {
                width: 820px;
                display: flex;
                justify-content: space-around;
                padding-left: 40px;
                position: relative;
                z-index: 999;

                li {
                    margin-right: 40px;
                    width: 38px;
                    text-align: center;
                    

                    a {
                        font-size: 16px;
                        line-height: 32px;
                        height: 32px;
                        display: inline-block;
                    }

                    .headerover {
                        height: 132px !important;
                        background: #fff;
                        // border: 1px solid #000;
                        opacity: 1 !important;
                    }

                    .headerNav {
                        width: 1240px;
                        background-color: #fff;
                        position: absolute;
                        left: -200px;
                        top: 56px;
                        height: 0;
                        overflow: hidden;
                        opacity: 0;
                        // box-shadow: 0 0 5px #ccc;
                        transition: all .2s .1s;


                        ul {
                            display: flex;
                            flex-wrap: wrap;
                            padding: 0 70px;
                            align-items: center;
                            height: 132px;

                            li {
                                width: 110px;
                                text-align: center;

                                img {
                                    width: 60px;
                                    height: 60px;
                                }

                                p {
                                    margin-top: 10px;
                                }
                            }
                        }
                    }
                }
            }

            .right {
                width: 220px;
                display: flex;
                text-align: center;
                padding-left: 40px;
                border-left: 2px solid #27ba9b;

                a {
                    width: 38px;
                    margin-right: 40px;
                    font-size: 16px;
                    line-height: 1;
                    background: #fff;
                }
            }
        }
    }
}